//
//  UIView+HMExtension.h
//  02-UIView分类
//
//  Created by heima on 16/3/5.
//  Copyright © 2016年 刘春牢. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (VIZExtension)

//setter ,getter,带下划线的成员变量

//@property (nonatomic, assign) CGFloat x;


//设置frame简单方法
- (void)setX:(CGFloat)x;

- (CGFloat)x;

@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;


////随机色
//func randomColor() -> UIColor {
//    let r = CGFloat(random() % 256) / 255
//    let g = CGFloat(random() % 256) / 255
//    let b = CGFloat(random() % 256) / 255
//    return UIColor(red: r, green: g, blue: b, alpha: 1)
//}

+ (UIColor *) randomColor;








@end
